#ifndef __HEART_RATE_H__
#define __HEART_RATE_H__

#include <stdint.h>
#include "prj_typedef.h"
#include "display_ctrl.h"

// bool hr_get_calc_flag(void);

void hr_algorithm_process(void);

void hr_module_init(void);
void hr_test_start(hr_test_type_t type);
void hr_test_stop(hr_test_type_t type);

uint8_t hr_get_hr_data(void);
bool hr_if_band_wear(void);
bool hr_if_band_wear_true(void);

void hr_band_wear_judge(uint8_t *p_result);
void hr_module_data_reset(void);
void hr_wear_calibration_start(void);
// void heart_rate_active_add(uint8_t active);
uint32_t get_infrared_data(void);

bool is_heart_rate_connect(void);

uint8_t get_hr_data(void);
// void hr_data_change(void);
uint32_t get_photoplethysmography_sensor_id(void);
// float get_photoplethysmography_threshold(void);
#endif
